﻿@using DevWeb.Biztalk.DeploymentSettings.WebUI.Models
@model IntegrationViewModel

@{
    ViewBag.Title = "Create an Integration";
}

<h2>Create a new Integration</h2>

@using (Html.BeginForm("CreateIntegration", "Integration", FormMethod.Post, new { @class = "form-horizontal"}))
{
    @Html.ValidationSummary(true)
    @Html.AntiForgeryToken()
    <fieldset>
        <legend>Integration To Create</legend>
        @Html.HiddenFor(model => model.Id)

        <div class="form-group">
            @Html.Label("Project Name", new { @class = "col-md-1 control-label" })
            <div class="col-md-10">
                @Html.TextBoxFor(model => model.Name, new { @class = "form-control", @placeholder = "ProjectName from BTDFProj" })
                <br />
                @Html.ValidationMessageFor(model => model.Name)
            </div>
        </div>

        <div class="form-group">
            @Html.Label("Product Upgrade Code", new { @class = "col-md-1 control-label" })
            <div class="col-md-10">
                @Html.TextBoxFor(model => model.ProductUpgradeCode, new { @class = "form-control", @placeholder = "ProductUpgradeCode from BTDFProj" })
                <br />
                @Html.ValidationMessageFor(model => model.ProductUpgradeCode)
            </div>
        </div>

        <div class="form-group">
            @Html.Label("Date Time", new { @class = "col-md-1 control-label" })
            <div class="col-md-10">
                @Html.TextBoxFor(model => model.CreateDateTime, new { @class = "form-control", @placeholder = "Creation Date/Time", disabled = "true"  })
                <br />
                @Html.ValidationMessageFor(model => model.CreateDateTime)
            </div>
        </div>

       
       
        <div class="form-group">
            @Html.Label("Description", new { @class = "col-md-1 control-label" })
            <div class="col-md-10">
                @Html.TextAreaFor(model => model.Description, new { @class = "form-control", @placeholder = "Integration Description" })
                <br />
                @Html.ValidationMessageFor(model => model.Description)
            </div>
        </div>

 
        
        <p>
            <button type="submit" class="btn btn-primary">Create Integration</button>
        </p>
    </fieldset>
}

<div>
    @Html.ActionLink("Back to List", "Index")
</div>